/*
与后台交互模块 （依赖已封装的ajax函数）
 */
import ajax from './ajax'
const BASE_URL = '/api_uf';
// const WS_URL = '/websocket';

// api
export const reqLogList = function (parms) {
  return ajax(BASE_URL + '/ufile/api_fileList', parms, 'POST')
};

export const reqDownloadFile = function (parms) {
  return ajax(BASE_URL + '/ufile/api_downloadFile', parms, 'POST')
};

export const downloadParsFile = function (parms) {
  return ajax(BASE_URL + '/ufile/api_downloadParsFile', parms, 'POST')
};

export const deleteFile = function (parms) {
  return ajax(BASE_URL + '/ufile/api_deleteFile', parms, 'POST')
};

// export const reqReConn = function () {
//   return ajax(BASE_URL + '/ws_reconn')
// };